package com.violet.mvpdemo.mvp.view

import android.view.LayoutInflater
import android.view.ViewGroup
import com.violet.mvpdemo.databinding.ActivityMainBinding
import com.violet.mvpdemo.mvp.MainContact
import com.violet.themvp.view.AppDelegate
import javax.inject.Inject

class MainDelegate @Inject constructor(): AppDelegate<ActivityMainBinding>(), MainContact.Delegate {

    override fun onCreateViewBinding(
        inflater: LayoutInflater,
        container: ViewGroup?
    ): ActivityMainBinding {
        return ActivityMainBinding.inflate(inflater)
    }

    override fun setText(text: String) {
        viewBinding.textName.text = text
    }
}